<template>
  <div class="container h100">
    <div class="header">
      <div class="info-card blue">
        <div class="icon-container">
          <i class="el-icon-money"></i>
        </div>
        <div class="value-container">
          <span>{{ 9999 }}</span>
        </div>
      </div>
      <div class="info-card green">
        <div class="icon-container">
          <i class="el-icon-document"></i>
        </div>
        <div class="value-container">
          <span>{{ 9999 }}</span>
        </div>
      </div>
      <div class="info-card orange">
        <div class="icon-container">
          <i class="el-icon-timer"></i>
        </div>
        <div class="value-container">
          <span>{{ 9999 }}</span>
        </div>
      </div>
      <div class="info-card red">
        <div class="icon-container">
          <i class="el-icon-message"></i>
        </div>
        <div class="value-container">
          <span>{{ 9999 }}</span>
        </div>
      </div>
    </div>
    <div class="body">
      <vue-echarts :option="option">

      </vue-echarts>
    </div>
    <div class="footer"></div>

  </div>
</template>

<script>
export default {
  name: "DashBoard",
  data() {
    return {
      option: {
        title: {text: "Column Chart"},
        tooltip: {},
        xAxis: {data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],},
        yAxis: {},
        series: [{name: "销量", type: "bar", data: [5, 20, 36, 10, 10, 20],},],
      }
    }
  }
}
</script>

<style scoped>
@import "../../../assets/css/common.css";

.header {
    display: flex;
    align-content: center;
    justify-content: space-between;
    line-height: normal;
    padding: 10px 0;
    min-width: 1000px;
}


.info-card {
    display: flex;
    padding: 2%;
    border-radius: 3px;
    color: white;
    font-size: 40px;
    align-items: center;
    font-weight: bold;
    width: 20%;
    aspect-ratio: 4/2;
    justify-content: space-evenly;


}

.info-card .value-container {
    width: 40%;
}

.green {
    background: #42b983;
}

.blue {
    background: #1d86ff;
}

.orange {
    background: #ffc161;
}

.red {
    background: #fa4d56;
}

.container {
    line-height: unset;
    display: flex;
    flex-direction: column;
}

.body{
    flex: 1;
}
</style>